package com.coolingme.signin;

/**
 * 扩展登录测试
 *
 * @author wangyue
 * @date 2020/9/16 10:55
 */
public class SignInTest {

    public static void main(String[] args) {
        SignInForThirdServiceImpl signInForThirdService = new SignInForThirdServiceImpl(new SignInServiceImpl());

        // -----------原有的接口-----------
        // 注册
        System.out.println(signInForThirdService.register("wangyue", "123456"));
        // 登录
        System.out.println(signInForThirdService.login("wangyue", "123456"));

        // -----------新增的接口-----------
        // QQ登录
        System.out.println(signInForThirdService.loginForQQ("4d68as4d684ads684"));
        // 手机验证码登录
        System.out.println(signInForThirdService.loginForPhone("188XXXX8888", "1234"));

    }

}
